import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '列表'
        })
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.column.operation.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.column.operation.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    confirm: {
        url: '/:id/confirm',
        title: formatMessage({
            id: 'routes.column.operation.confirm',
            defaultMessage: '确认'
        }),
        format: '/{0}/confirm'
    },
    upInvoice: {
        url: '/:id/upInvoice',
        title: formatMessage({
            id: 'routes.column.operation.upInvoice',
            defaultMessage: '上传发票'
        }),
        format: '/{0}/upInvoice'
    },
    invoiceConfirm: {
        url: '/:id/invoiceConfirm',
        title: formatMessage({
            id: 'routes.column.operation.invoiceConfirm',
            defaultMessage: '发票确认'
        }),
        format: '/{0}/invoiceConfirm'
    },
    writeOff: {
        url: '/:id/writeOff',
        title: formatMessage({
            id: 'routes.column.operation.writeOff',
            defaultMessage: '核销'
        }),
        format: '/{0}/writeOff'
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
});

export default routes;
